
//造一个树形数据 最多有五层 字段分别是 id  name  isRoot children  linkId是由每个id拼接而成可以用来区分层级 请注意id不能重复

const treeData:any = [
    {
        id:'Menu',
        name: '手动添加',
        isRoot:true,
        children: [
            {
                id:'Z00302',
                name: '咨询中心股票按内部行业分类',
                isRoot:false,
                linkId:'Menu,Z00302',
                children:[
                    {
                        id:'Z00302064',
                        name:'公共事业',
                        isRoot:false,
                        linkId:'Menu,Z00302,Z00302064',
                        children:[
                            {
                                id:'Z00302064001',
                                name:'环保',
                                isRoot:false,
                                linkId:'Menu,Z00302,Z00302064,Z00302064001',
                                children:[
                                    {
                                        id:'Z00302064001001',
                                        name:'环境治理',
                                        isRoot:false,
                                        linkId:'Menu,Z00302,Z00302064,Z00302064001,Z00302064001001',
                                        children:[]
                                    },
                                    {
                                        id:'Z00302064001002',
                                        name:'环保设备',
                                        isRoot:false,
                                        linkId:'Menu,Z00302,Z00302064,Z00302064001,Z00302064001002',
                                        children:[]
                                    }
                                ]
                            },
                            {
                                id:'Z00302064002',
                                name:'水务',
                                isRoot:false,
                                linkId:'Menu,Z00302,Z00302064,Z00302064002',
                                children:[
                                    {
                                        id:'Z00302064002001',
                                        name:'水务服务',
                                        isRoot:false,
                                        linkId:'Menu,Z00302,Z00302064,Z00302064002,Z00302064002001',
                                        children:[]
                                    }
                                ]
                            },
                            {
                                id:'Z00302064003',
                                name:'传统电力设备',
                                isRoot:false,
                                linkId:'Menu,Z00302,Z00302064,Z00302064003',
                                children:[
                                    {
                                        id:'Z00302064003001',
                                        name:'燃气',
                                        isRoot:false,
                                        linkId:'Menu,Z00302,Z00302064,Z00302064003,Z00302064003001',
                                        children:[]
                                    },
                                    {
                                        id:'Z00302064003002',
                                        name:'电力',
                                        isRoot:false,
                                        linkId:'Menu,Z00302,Z00302064,Z00302064003,Z00302064003002',
                                        children:[]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        id:'Z00302065',
                        name:'交通运输',
                        isRoot:false,
                        linkId:'Menu,Z00302,Z00302065',
                        children:[
                            {
                                id:'Z00302065001',
                                name:'航空运输',
                                isRoot:false,
                                linkId:'Menu,Z00302,Z00302065,Z00302065001',
                                children:[]
                            },
                            {
                                id:'Z00302065002',
                                name:'港口航运',
                                isRoot:false,
                                linkId:'Menu,Z00302,Z00302065,Z00302065002',
                                children:[]
                            },
                        ]
                    }
                ]
            } 
        ],
    },
    {
        id:'WD',
        name:'万得',
        isRoot:true,
        children:[
            {
                id:'Z001',
                name:'沪深300成分股',
                isRoot:false,
                linkId:'WD,Z001',
                children:[]
            },
            {
                id:'Z002',
                name:'中证500成分股',
                isRoot:false,
                linkId:'WD,Z002',
                children:[
                    {
                        id:'Z002001',
                        name:'中证500成分股-一级行业',
                        isRoot:false,
                        linkId:'WD,Z002,Z002001',
                        children:[
                            {
                                id:'Z002001001',
                                name:'农林牧渔',
                                isRoot:false,
                                linkId:'WD,Z002,Z002001,Z002001001',
                                children:[
                                    {
                                        id:'Z002001001001',
                                        name:'农业',
                                        isRoot:false,
                                        linkId:'WD,Z002,Z002001,Z002001001,Z002001001001',
                                        children:[]
                                    },
                                    {
                                        id:'Z002001001002',
                                        name:'林业',
                                        isRoot:false,
                                        linkId:'WD,Z002,Z002001,Z002001001,Z002001001002',
                                        children:[]
                                    },
                                ]
                            }
                        ]
                    },
                    {
                        id:'Z002002',
                        name:'中证500成分股-二级行业',
                        isRoot:false,
                        linkId:'WD,Z002,Z002002',
                        children:[]
                    },
                    {
                        id:'Z002003',
                        name:'中证500成分股-三级行业',
                        isRoot:false,
                        linkId:'WD,Z002,Z002003',
                        children:[]
                    }
                ]
            },
            {
                id:'Z003',
                name:'中证1000成分股',
                isRoot:false,
                linkId:'WD,Z003',
                children:[]
            },
        ]
    },
    {
        id:'NIDC',
        name:'新投资数据中心',
        isRoot:true,
        children:[
            {
                id:'Z00281',
                name:'股票打新',
                isRoot:false,
                linkId:'NIDC,Z00281',
                children:[
                    {
                        id:'Z00281001',
                        name:'网上打新',
                        isRoot:false,
                        linkId:'NIDC,Z00281,Z00281001',
                        children:[]
                    },
                    {
                        id:'Z00281002',
                        name:'网下打新',
                        isRoot:false,
                        linkId:'NIDC,Z00281,Z00281002',
                        children:[]
                    },
                    {
                        id:'Z00281003',
                        name:'未公开',
                        isRoot:false,
                        linkId:'NIDC,Z00281,Z00281003',
                        children:[]
                    }
                ]
            },
            {
                id:'Z00282',
                name:'新数据中心股票按海外GICS行业分类',
                isRoot:false,
                linkId:'NIDC,Z00282',
                children:[
                    {
                        id:'Z00282001',
                        name:'房地产',
                        isRoot:false,
                        linkId:'NIDC,Z00282,Z00282001',
                        children:[
                            {
                                id:'Z00282001001',
                                name:'房地产',
                                isRoot:false,
                                linkId:'NIDC,Z00282,Z00282001,Z00282001001',
                                children:[]
                            }
                        ]
                    },
                    {
                        id:'Z00282002',
                        name:'公共事业',
                        isRoot:false,
                        linkId:'NIDC,Z00282,Z00282002',
                        children:[
                            {
                                id:'Z00282002001',
                                name:'公共事业',
                                isRoot:false,
                                linkId:'NIDC,Z00282,Z00282002,Z00282002001',
                                children:[]
                            },
                        ]
                    }
                ]
            },{
                id:'Z00283',
                name:'股票汇总分类',
                isRoot:false,
                linkId:'NIDC,Z00283',
                children:[]
            }
        ]
    }

]
export default treeData